<?php
class Site_SitemapController extends Promotor_Controller_Action {
	
	public $skin = array(
		'layout' => 'site_display'
	);

	public $contexts = array(
    	'display' => array('xml','html')
    );
    
    public $acl = array(
		'index' => 'show',
		'display' => 'show'
	);
    
    public function init() {
    	$contextSwitch = $this->_helper->getHelper('ContextSwitch');
    	$contextSwitch->initContext();
    }
    
    public function indexAction() {
    	$this->_forward('display');
    }

	public function displayAction() {
		$model = new Site_Model_Sitemap();
		$this->view->navigation = $model->getNavigation();
	}
}